package com.myblog.service;

import com.myblog.model.Article;
import com.myblog.utils.DataMap;

import java.util.List;
import java.util.Map;

public interface ArticleService {
    DataMap publicArticle(Article article,String name);

    DataMap getArticleByPage(Integer rows, Integer pageNum);

    DataMap deleteArticleById(Integer id);

    DataMap getDraftArticleById(Integer id);

    Article getArticleById(Integer id);

    DataMap getArticleByPageIndex(Integer rows, Integer pageNum);

    Map<String, String> findArticleTitleByArticleId(long articleId);

    DataMap getArticleByArticleId(long articleId,Integer isLiked);

    DataMap getSearchArticleByPageIndex(Integer rows, Integer pageNum, String context);
}
